<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>do_while循环案例</title>
</head>
<body>
    <script>
        var sum = 0;
        var i = 0 ;
        do {
            sum = sum + i;
            i++;
        } while (i < 101)
        alert(sum);
    </script>
</body>
</html>